<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<c:set var="nature_value">
	<x:out
		select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />
	</c:set>
<c:set var="private_technology_no">
			<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/private_technology_no" />
	</c:set>

 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
<div class="t_bar"><span class="color_red">*</span>申报单位情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1" >
	<tr>
		<td style="width: 18%;" align="right" nowrap>单位名称：</td>
		<td colspan="5">&nbsp;<span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
	</tr>
<%-- 	<tr>
		<td  align="right">负责人：</td>
		<td>&nbsp;
		    <span name="organization_persons/person/cname" ><x:out select="$xmlData/data/organization_persons/person[@sequence_no='2']/cname" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >&nbsp;
		<span name="organization_persons/person/tel" ><x:out select="$xmlData/data/organization_persons/person[@sequence_no='2']/tel" /></span>
		</td>
	</tr> --%>
	<tr>
		<td  align="right">单位地址：</td>
		<td colspan="3">&nbsp;
		<span name="organizations/organization[0]/address" ><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" /></span>
		</td>
		<td  align="right">邮政编码：</td>
		<td>&nbsp;
		<span name="organizations/organization[0]/zip_code"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/zip_code" /></span>
		</td>
	</tr> 
	<%-- <tr>
		<td  align="right">联系人：</td>
		<td  >&nbsp;
			<span  name="organization_persons/organization_person/contact_name" /><x:out select="$xmlData/data/organization_persons/organization_person/contact_name" /></span> 
			
		
		</td>
		<td  align="right">手机号码：</td>
		<td  >&nbsp;
			<span  name="organization_persons/organization_person/contact_mobile" />
				<x:out select="$xmlData/data/organization_persons/organization_person/contact_mobile" />
			</span> 
		</td>
	</tr> --%>
	<tr>
		<td  align="right">网址：</td>
		<td colspan="3">&nbsp;
				<span name="organizations/organization[0]/http" id="http"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/http" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td>&nbsp;
			<span  name="organizations/organization[0]/email"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/email" /></span>
		</td>
	</tr>
	<tr>
		<td align="right">注册类型：</td>
		<td style="width: 17%;">&nbsp;
		   <span name="organizations/organization[0]/nature_name" id="nature_name"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /> 
		    </span>
		    <input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
		</td>
		<td  align="right" style="width: 15%;">注册资本：</td>
		<td style="width: 18%;">&nbsp;
			<span  name="organizations/organization[0]/registe_fund"><x:out select="$xmlData/data/org_basic_info/registe_fund" />万<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name" /></span>
		</td>
		<td  align="right" style="width: 15%;">其中外资比例：</td>
		<td  >&nbsp;
			<input type="text" name="organization/foriegn_invest" class="required" style="width: 60%;text-align: right;" label="其中外资比例" onfocus="InitInput.setNumber(this,7,2,2);" value="<x:out select="$xmlData/data/organization/foriegn_invest" />" />%
		</td>
	</tr>
	
	<c:if test="${fn:substring(nature_value,0,1)=='A' }">
		<!-- 企业单位：显示证书号 -->
		<tr>
			<td align="right">是否民营科技企业：</td>
			<td colspan="2">
				<span name="organizations/organization[0]/whether_private_technology_name" >
					<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/whether_private_technology_name" />
				</span>
			</td>
			<td align="right">民营科技企业登记证书号：</td>
		
			<td colspan="2">
			<c:if test="${ private_technology_no==''}">
				<input id='private_technology_no' style="border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;width: 200px"  readonly="readonly" name="organizations/organization[0]/private_technology_no"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/private_technology_no" />"/>
			</c:if>
			<c:if test="${ private_technology_no!=''}">
				<input id='private_technology_no' style="border:1px;border-bottom-style:none;border-top-style:none;border-left-style:none;border-right-style:none;width: 200px" readonly="readonly" name="organizations/organization[0]/private_technology_no"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/private_technology_no" />"/>
			</c:if>
			
			</td>
		</tr>
	</c:if>
	
	
</table>
<div class="t_bar"><span class="color_red">*</span>单位人员情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="table7" cellspacing="1">
	<tr>
		<td align="right" style="width: 18%;">法人代表：</td>
		<td style="width: 32%;">&nbsp;
		   <span name="organization/faren_cname">
		   		<x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/cname" />
		   </span>
		</td>
		<td align="right" style="width: 18%;">性别：</td>
		<td style="width: 32%;">&nbsp;
		    <c:set var="gender_value"><x:out select="$xmlData/data/organization/faren_gender_value" /></c:set>
			<cpt:select id="faren_gender" key="gender" name="faren_gender" onChange="initControlValue(this.id);" value="${gender_value }" style="width:49%"></cpt:select>
			<input type="hidden" name="organization/faren_gender_value" class="required" label="法人代表的性别" value="<x:out select="$xmlData/data/organization/faren_gender_value" />"/>
			<input type="hidden" name="organization/faren_gender_name" value="<x:out select="$xmlData/data/organization/faren_gender_name" />"/>
		</td>
	</tr>
	<tr>
		<td align="right">出生年月：</td>
		<td>&nbsp;
		    <c:set var="faren_birthday"><x:out select="$xmlData/data/organization/faren_birthday" /></c:set>
			<cpt:date id="faren_birthday" className="required date beforeToday inputWidth2" label="法人代表的出生年月"   name="organization/faren_birthday" value="${faren_birthday }"></cpt:date>
		</td>
		<td align="right">最后学历：</td>
		
		<td  style="padding-left:10px">
			<c:set var="faren_educate_value"><x:out select="$xmlData/data/organization/faren_educate_value" /></c:set>
			<cpt:select id="faren_educate"  key="educate" onChange="initControlValue(this.id);" value="${faren_educate_value }" style="width:49%"></cpt:select>
				<input type="hidden" id="faren_educate_value" name="organization/faren_educate_value" value="${faren_educate_value }" class="required"  label="法人代表的最后学历"/> 
				<input type="hidden" id="faren_educate_name" name="organization/faren_educate_name" value="<x:out select="$xmlData/data/organization/faren_educate_name" />" />
       </td>
   </tr>
	<tr>
        <td align="right">任现职时间：</td>
		<td>&nbsp;
		    <c:set var="faren_work_date"><x:out select="$xmlData/data/organization/faren_work_date" /></c:set>
			<cpt:date id="faren_work_date" className="required date beforeToday inputWidth2" label="法人代表的任现职时间"   name="organization/faren_work_date" value="${faren_work_date }"></cpt:date>
        </td>
        <td align="right">电话：</td>
		<td>&nbsp;
		    <span name="organization/faren_tel">
		   		<x:out select="$xmlData/data/organization_persons/person[@sequence_no='1']/tel" />
		   </span>
        </td>
	</tr>
	<tr>
		<td align="right">总经理：</td>
		<td>&nbsp;
		   <input type="text" name="organization/zjl_name" label="总经理"
		   class="input_css required inputWidth2" maxlength="50"
		     value="<x:out select="$xmlData/data/organization/zjl_name"/>"/>
		</td>
		<td align="right">性别：</td>
		<td>&nbsp;
		    <c:set var="gender_value"><x:out select="$xmlData/data/organization/zjl_gender_value" /></c:set>
			<cpt:select id="zjl_gender" key="gender" name="zjl_gender" onChange="initControlValue(this.id);" value="${gender_value }" style="width:49%"></cpt:select>
			<input type="hidden" name="organization/zjl_gender_value" class="required" label="总经理的性别" value="<x:out select="$xmlData/data/organization/zjl_gender_value" />"/>
			<input type="hidden" name="organization/zjl_gender_name" value="<x:out select="$xmlData/data/organization/zjl_gender_name" />"/>
		</td>
		</tr>
	<tr>
		<td align="right">出生年月：</td>
		<td>&nbsp;
		    <c:set var="zjl_birthday"><x:out select="$xmlData/data/organization/zjl_birthday" /></c:set>
			<cpt:date id="zjl_birthday" className="required date beforeToday inputWidth2" label="总经理的出生年月"   name="organization/zjl_birthday" value="${zjl_birthday }"></cpt:date>
		</td>
		<td align="right">最后学历：</td>
		
		<td  style="padding-left:10px">
			<c:set var="zjl_educate_value"><x:out select="$xmlData/data/organization/zjl_educate_value" /></c:set>
			<cpt:select id="zjl_educate"  key="educate" onChange="initControlValue(this.id);" value="${zjl_educate_value }" style="width:49%"></cpt:select>
				<input type="hidden" id="zjl_educate_value" name="organization/zjl_educate_value" value="${zjl_educate_value }" class="required"  label="总经理的最后学历"/> 
				<input type="hidden" id="zjl_educate_name" name="organization/zjl_educate_name" value="<x:out select="$xmlData/data/organization/zjl_educate_name" />" />
       </td>
   </tr>
	<tr>
      <td align="right">任现职时间：</td>
		<td>&nbsp;
		   <c:set var="zjl_work_date"><x:out select="$xmlData/data/organization/zjl_work_date" /></c:set>
			<cpt:date id="zjl_work_date" className="required date beforeToday inputWidth2" label="总经理的任现职时间"   name="organization/zjl_work_date" value="${zjl_work_date }"></cpt:date>
      </td>
      <td align="right">电话：</td>
		<td>&nbsp;
		    <input type="text" name="organization/zjl_tel" label="总经理的电话" class="required inputWidth2" maxlength="20" value="<x:out select="$xmlData/data/organization/zjl_tel" />"/>
      </td>
	</tr>
	<tr>
		<td align="right">联系人：</td>
		<td>&nbsp;
		   <span  name="organization_persons/organization_person/contact_name" ><x:out select="$xmlData/data/organization_persons/organization_person/contact_name" /></span>
		</td>
		<td align="right">手机号码：</td>
		<td>&nbsp;
		   <span  name="organization_persons/organization_person/contact_mobile" >
				<x:out select="$xmlData/data/organization_persons/organization_person/contact_mobile" />
			</span> 
		</td>
	</tr>
	<tr>
		<td align="right">联系电话：</td>
		<td>&nbsp;
		    <span  name="organization/contact_info/contact_tel"> 
				<x:out select="$xmlData/data/organization/contact_info/contact_tel" />
			 </span>
		</td>
		<td align="right">传真：</td>
		<td>&nbsp;
		<c:set var="fax"><x:out select="$xmlData/data/organization_person/contact_fax" /></c:set>
		<c:if test="${fax == '' }"><c:set var="fax"><x:out select="$xmlData/data/organization/contact_info/contact_fax" /></c:set></c:if>
		<input  type="text" name="organization_person/contact_fax" id="contact_fax" class="required"  label="联系人传真" value="${fax }"/> 
		</td>
	</tr>
	<tr>
		<td align="right">职工总数（人）：</td>
		<td>&nbsp;
			<x:out select="$xmlData/data/organization_persons/people_count_total"/>
		    <input type="hidden" id="staff" name="organization_persons/people_count_total" class="required valueGreatEqual:staff:tech_number" label="职工人数" value="<x:out select="$xmlData/data/organization_persons/people_count_total"/>">
		 </td>
		<td align="right">大专以上人员（人）：</td>
		<td>&nbsp;
			<span name="organization_persons/degree_number" id="degree_number"><x:out select="$xmlData/data/organization_persons/degree_number"/></span>
			<input type="hidden" id="degree_doctor" name="organization_persons/degree_doctor" value="<x:out select="$xmlData/data/organization_persons/degree_doctor"/>" />
			<input type="hidden" id="degree_master" name="organization_persons/degree_master" value="<x:out select="$xmlData/data/organization_persons/degree_master"/>" />
			<input type="hidden" id="degree_bachelor" name="organization_persons/degree_bachelor" value="<x:out select="$xmlData/data/organization_persons/degree_bachelor"/>" />
			<input type="hidden" id="degree_college" name="organization_persons/degree_college" value="<x:out select="$xmlData/data/organization_persons/degree_college"/>" />
		</td>
	</tr>
	<tr>
		<td align="right">管理人员（人）：</td>
		<td>&nbsp;
			<span name="organization_persons/work_xingzheng" id="work_xingzheng"><x:out select="$xmlData/data/organization_persons/work_xingzheng"/></span>
		</td>
		<td align="right">研究开发人员（人）：</td>
		<td>&nbsp;
			<span name="organization_persons/work_yanfa" id="work_yanfa"><x:out select="$xmlData/data/organization_persons/work_yanfa"/></span>
		</td>
	</tr>
	</table>
	
<div class="t_bar">通过行业认证情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="table8" cellspacing="1">
	<tr>
		<td align="right" style="width: 18%;">部门/行业：</td>
		<td style="width: 32%;">&nbsp;
			<input type="text" name="organization/office" id="office" maxlength="50" class=" inputWidth2" value="<x:out select="$xmlData/data/organization/office" />" label="部门/行业" />
		</td>
		<td align="right" style="width: 18%;">认证时间：</td>
		<td style="width: 32%;">&nbsp;
			<c:set var="authenticate_date"><x:out select="$xmlData/data/organization/authenticate_date" /></c:set>
			<cpt:date id="authenticate_date" className=" date beforeToday inputWidth2" label="认证时间"   name="organization/authenticate_date" value="${authenticate_date }"></cpt:date>
		</td>
	</tr>
	<tr>
		<td align="right">认证类型：</td>
		<td>&nbsp;
			<input type="text" name="organization/authenticate_type" maxlength="100" id="authenticate_type" class=" inputWidth2" value="<x:out select="$xmlData/data/organization/authenticate_type" />" label="认证类型" />
		</td>
		<td align="right">高新技术企业认证：</td>
		<td>&nbsp;
			<label> <input type="radio" class="do " id="authenticate_01" style="vertical-align: middle;" name="authenticate" label="是" value="01" /><span style="vertical-align: middle;">是</span></label> 
			<label> <input type="radio" class="do " id="authenticate_02" style="vertical-align: middle;" name="authenticate" label="否" value="02" /><span style="vertical-align: middle;">否</span></label> 
			<input type="hidden" name="organization/authenticate_value" id="authenticate_value" class="" value="<x:out select="$xmlData/data/organization/authenticate_value" />" label="高新技术企业认证" /> 
			<input type="hidden" name="organization/authenticate_name" id="authenticate_name" value="<x:out select="$xmlData/data/organization/authenticate_name" />" label="高新技术企业认证" /></td>
		</td>
	</tr>
</table>
<div class="t_bar">上年度产品情况</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="table9" cellspacing="1">
	<tr align="center">
		<td style="width: 18%;">序号</td>
		<td style="width: 32%;">主要产品</td>
		<td style="width: 50%;">占企业销售收入比例</td>
	</tr>
	<c:set value="1" var="index" scope="page"/>
	<x:forEach select="$xmlData/data/product/goods" var="good">
		<c:choose>
			<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
			<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
		</c:choose>
	<tr align="center">
		<td>
			<span name="product/goods[${flag }${index }]@seq_no">${index }</span>
		</td>
		<td>
			<span name="product/goods[${flag }${index }]/gname">
				<x:out select="$good/gname"/>
			</span>
		</td>
		<td>
			<span name="product/goods[${flag }${index }]/persent"></span>%
			<input type="hidden" name="product/goods[${flag }${index }]/income" value="<x:out select="$good/income"/>">
		</td>
	</tr>
	<c:set var="index" scope="page">${index+1 }</c:set>
	</x:forEach>
</table>

<div class="t_bar">上年度单位生产经营情况</div>
<c:if test="${fn:substring(nature_value,0,1)=='A' }">
<!-- 企业单位 -->
<table class="t_css" width="100%" border="0" cellpadding="0" id="table10" cellspacing="1">
	<tr>
		<td align="right" style="width: 18%;">总收入（万元）：</td>
		<td style="width: 32%;" align="center">
			<span name="organization/total_income" id="total_income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/income" /></span>
		</td>
		<td align="right" style="width: 18%">净利润（万元）：</td>
		<td style="width: 32%;" align="center">
			<span name="organization/benefit_year"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/proft" /></span>
		</td>
	</tr>
	<tr>
		<td align="right">总产值（万元）：</td>
		<td align="center">
			<span name="organization/income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/output" /></span>
		</td>
		<td align="right">纳税总额（万元）：</td>
		<td align="center">
			<span name="organization/proft"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/fax" /></span>
		</td>
	</tr>
	<tr>
		<td align="right">增加值（万元）：</td>
		<td align="center">
			<span name="organization/added" class="required" ><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/added" /></span>
		</td>
		<td align="right">创汇总额（万美元）：</td>
		<td align="center">
			<span name="organization/output" class="required" ><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/export" /></span>
		</td>
	</tr>
	<tr>
		<td align="right">产品销售收入（万元）：</td>
		<td align="center">
			<span name="organization/prj_income_sale" class="required" ><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/sales_revenue" /></span>
		</td>
		<td align="right">技术开发费（万元）：</td>
		<td align="center">
			<span name="organization/research" class="required" ><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/yanfa_income" /></span>
		</td>
	</tr>
</table>
</c:if>

<c:if test="${fn:substring(nature_value,0,1)!='A' }">
<!-- 非企业单位 -->
<table class="t_css" width="100%" border="0" cellpadding="0" id="table10" cellspacing="1">
	<tr>
		<td align="right" style="width: 18%;">总收入（万元）：</td>
		<td style="width: 32%;" align="center">
			<span name="organization/total_income" id="total_income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='4']/income" /></span>
		</td>
		<td align="right" style="width: 18%">净利润（万元）：</td>
		<td style="width: 32%;" align="center">
			<span name="organization/benefit_year"></span>
		</td>
	</tr>
	<tr>
		<td align="right">总产值（万元）：</td>
		<td align="center">
			<span name="organization/income"></span>
		</td>
		<td align="right">纳税总额（万元）：</td>
		<td align="center">
			<span name="organization/proft"></span>
		</td>
	</tr>
	<tr>
		<td align="right">增加值（万元）：</td>
		<td align="center">
			<span name="organization/added" class="required" ></span>
		</td>
		<td align="right">创汇总额（万美元）：</td>
		<td align="center">
			<span name="organization/output" class="required" ></span>
		</td>
	</tr>
	<tr>
		<td align="right">产品销售收入（万元）：</td>
		<td align="center">
			<span name="organization/prj_income_sale" class="required" ></span>
		</td>
		<td align="right">技术开发费（万元）：</td>
		<td align="center">
			<span name="organization/research" class="required" ></span>
		</td>
	</tr>
</table>
</c:if>


<script type="text/javascript">

function initTreeValueExt(treeId, treeNode) {
	   
	  if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label") + messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val("");
		}
		
		return false;
		}
	
	
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId+ "_name']").val(str);
		
	}
</script>
